const mongoose=require("mongoose");
const Schema=mongoose.Schema;
//  编号level_id
//  会员等级 member_level
//  充值金额 money
//  消费折扣 discount
const memberLevelSchema=new Schema({
    level_id:{
        type:String,
        unique:true,
        required:true
    },
    member_level:{
        type:String,
        unique:true,
        required:true
    },
    money:{
        type:Number,
        unique:true,
        required:true
    },
    discount: {
        type: Number,
        unique: true,
        required: true
    }
})
module.exports=mongoose.model("memberLevels",memberLevelSchema)